package com.drone.drone_server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("drone_flight_record")
public class DroneFlightRecord {
    @TableId(value = "record_id", type = IdType.AUTO)
    private Integer recordId;

    @TableField("drone_id")
    private Integer droneId;

    @TableField("route_id")
    private Integer routeId;

    @TableField("start_time")
    private Date startTime;

    @TableField("end_time")
    private Date endTime;

    @TableField("flight_status")
    private String flightStatus;
}
